package com.niit.house.lyl.lift;

import org.apache.hadoop.io.Writable;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;

public class LiftWritable implements Writable {
    private int isLift;

    private int price;

    public LiftWritable() {}

    public LiftWritable(int isLift, int price) {
        this.isLift = isLift;
        this.price = price;
    }

    @Override
    public void write(DataOutput out) throws IOException {
        out.writeInt(isLift);
        out.writeInt(price);
    }

    @Override
    public void readFields(DataInput in) throws IOException {
        isLift = in.readInt();
        price = in.readInt();
    }


    public int getIsLift() {
        return isLift;
    }

    public void setIsLift(int isLift) {
        this.isLift = isLift;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

}